<template>
	<div>
		<el-dialog :title="id == '' ? '退款申请' : '编辑申请'" v-model="dialogVisible" width="730" center
			:before-close="handleClose">
			<refundPop ref="content" :id="id" @getList="getList"></refundPop>
		</el-dialog>	
	</div>
</template>

<script>
	import refundPop from './refundPop.vue'
	export default{
		components:{
			refundPop
		},
		props:{
			id:{
				type:String,
				default:''
			}
		},
		data(){
			return{
				dialogVisible:false
			}
		},
		methods:{
			handleClose(){
				this.dialogVisible = false
			},
			open(id){
				this.dialogVisible = true
				console.log(id,'id')
				setTimeout(()=>{
					this.$refs.content.open(id)
				},200)
			},
			getList(){
				this.dialogVisible = false
				this.$emit('getList')
			}
		}
	}
</script>

<style>
</style>